package com.example.testrest;

import java.io.IOException;
import java.util.Vector;

import org.restlet.resource.ClientResource;
import org.restlet.resource.ResourceException;

import restlet.interfaces.AllTripCatsResourceI;
import beans.TripCatBean;

public class TestTripCats {
	public static void main(String[] args) throws ResourceException,
			IOException {

		ClientResource cr = new ClientResource(
				"http://localhost:8080/rest/tripCats");
		AllTripCatsResourceI benCatsResourceI = cr
				.wrap(AllTripCatsResourceI.class);
		Vector<TripCatBean> allbenCats = benCatsResourceI.allTripCats();

		for (TripCatBean tripCat : allbenCats) {
			System.out.println(tripCat);
		}

	}
}
